﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	GetGuilds
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<link href="../../Content/Admin/control.css" rel="stylesheet" type="text/css" />
    <div>
    <table class="TableView" width="100%">
   <tr class="trHeader">
   <td>Mã Guild</td>
     <td style="width: 240px">Tên Guild</td>
       <td>Số lượng người chơi</td>
       <td>Chức năng</td>
   </tr>
   <%if (ViewData["listguild"] != null)
     { %>
    <%foreach (VgoCardChange.Models.Objects.Guild guild in (List<VgoCardChange.Models.Objects.Guild>)ViewData["listguild"])
      { %>
      <tr class="trOdd">
      <td><%:guild.GuildID%></td>
      <td style="width: 240px"><%:guild.GuildName%></td>
      <td><%:guild.Player_Number%></td>
      <td>
      <div class="Control" style="background-color:White; border-style:none;">
      <%:Html.ActionLink("Sửa", "EditGuild", new { GuildID = guild.GuildID }, new { @class = "vedit" })%>
         <%:Html.ActionLink("Xóa", "DeleteGuild", new { GuildID = guild.GuildID }, new { @class = "vdelete" })%>
         </div>
         </td>
      </tr>
    <%} %>
    <%} %>
     </table>
     <div class="Control">
     <%:Html.ActionLink("Tạo mới", "CreateGuild", "Guild", new { @class = "vadd" })%>
     <%:Html.ActionLink("Quay lại", "GetGuilds", "Guild", new { @class = "vback" })%>
     </div>
    </div>


</asp:Content>
